package com.zhangyj.component.tags;

import java.io.Serializable;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.Tag;

public class AbstractTag  implements Tag, Serializable {

	private static final long serialVersionUID = 2763600738735303386L;
	protected PageContext pageContext;
	protected Tag parent;

	
	public Tag getParent() {
		return this.parent;
	}

	
	public void release() {
	}

	
	public void setPageContext(PageContext pageContext) {
		this.pageContext = pageContext;
	}

	
	public void setParent(Tag parent) {
		this.parent = parent;
	}


	@Override
	public int doEndTag() throws JspException {
		// TODO Auto-generated method stub
		return Tag.EVAL_PAGE;
	}


	@Override
	public int doStartTag() throws JspException {
		// TODO Auto-generated method stub
		return Tag.EVAL_BODY_INCLUDE;
	}

}
